import 'package:json_annotation/json_annotation.dart';

part 'page_response.g.dart';

@JsonSerializable(genericArgumentFactories: true)
class PageResponse<T> {
  int? pageNum;
  int? pageSize;
  int? total;
  List<T>? list;
  Map? authNum;
  Map? statistics;

  PageResponse({this.pageNum, this.pageSize, this.total, this.list,this.authNum});

  factory PageResponse.fromJson(
          Map<String, dynamic> json, T Function(Object? json) fromJsonT) =>
      _$PageResponseFromJson(json, fromJsonT);

  Map<String, dynamic> toJson(Object? Function(T value) toJsonT) =>
      _$PageResponseToJson(this, toJsonT);

}
